<?php
//=======================================
//###################################
// Kayako Web Solutions
//
// Source Copyright 2001-2004 Kayako Infotech Ltd.
// Unauthorized reproduction is not allowed
// License Number: $%LICENSE%$
// $Author: vshoor $ ($Date: 2006/09/21 20:51:19 $)
// $RCSfile: instaalert_dispatch.php,v $ : $Revision: 1.6 $ 
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
//###################################
//=======================================

if (!defined("INSWIFT")) {
	trigger_error("Unable to process $PHP_SELF", E_USER_ERROR);
}

require_once ("./includes/functions_xml.php");
require_once ("./modules/tickets/functions_ticketsui.php");
require_once ("./modules/tickets/functions_instaalert.php");
require_once ("./modules/tickets/functions_xmlapi.php");

$xml = new XML;

$departmentidlist = getAssignedDepartments(MODULE_TICKETS);

$xml->addParentTag("instaalert");

	renderXMLTree($xml, $departmentidlist);

	fetchInstaAlertPopups($xml, $departmentidlist);

$xml->endParentTag("instaalert");

$xml->echoXMLUTFWinapp();
?>